package io.plus.interactive;

import io.plus.client.user_interface.ClientAioListener;
import io.plus.interactive.user_interface.Packet;
import io.plus.server.user_interface.ServerAioListener;

public class DefaultAioListener implements ClientAioListener, ServerAioListener {
    @Override
    public void onAfterConnected(AsynchronousSocketChannelContext asynchronousSocketChannelContext, boolean isConnected, boolean isReconnect) {
    }

    @Override
    public void onAfterDecoded(AsynchronousSocketChannelContext asynchronousSocketChannelContext, Packet packet, int packetSize) {
    }

    @Override
    public void onAfterSent(AsynchronousSocketChannelContext asynchronousSocketChannelContext, Packet packet, boolean isSentSuccess) throws Exception {
    }

    @Override
    public void onBeforeClose(AsynchronousSocketChannelContext asynchronousSocketChannelContext, Throwable throwable, String remark, boolean isRemove) {
    }

    @Override
    public void onAfterHandled(AsynchronousSocketChannelContext asynchronousSocketChannelContext, Packet packet, long cost) throws Exception {
    }

    @Override
    public void onAfterReceivedBytes(AsynchronousSocketChannelContext asynchronousSocketChannelContext, int receivedBytes) throws Exception {

    }

    @Override
    public boolean onHeartbeatTimeout(AsynchronousSocketChannelContext asynchronousSocketChannelContext, Long interval, int heartbeatTimeoutCount) {
        return false;
    }
}
